package com.zxy.demo.java;

/**
 * 条件判断switch的示例.
 * 
 * Created by zxybird on 16/12/19.
 */
public class SwitchDemo {

  public static void main(String[] args) {
    //
    int type = 2;

    switch (type) {
      case 1:
        System.out.println(type);
        break;
      case 2:
        System.out.println(type);
        break;
      case 3:
        System.out.println(type);
        break;
      default:
        break;
    }
  }

}
